/*
 * All right reserved@Raygo 2022~2030
 */

package com.raygo.runner.core;

import com.raygo.runner.core.entity.Flow;
import com.raygo.runner.core.entity.FlowInfo;
import com.raygo.runner.core.result.BoolResult;

/**
 * 全流程执行器
 *
 * @author Raygo
 * @since 2022年5月22日
 */
public class FlowExecutor {
    /**
     * 步骤项组
     */
    private Flow flow;

    /**
     * 扩展信息
     */
    private FlowInfo flowInfo;

    /**
     * 构造执行器
     *
     * @param flow 流程
     * @param info 扩展信息
     */
    public FlowExecutor(Flow flow, FlowInfo info) {
        this.flow = flow;
        this.flowInfo = info;
    }

    /**
     * 执行所有组
     *
     * @return 结果
     */
    public BoolResult runFlow() {
        BoolResult result = new BoolResult();
        try {

        } catch (Exception ex) {

        } finally {
        }
        return result;
    }
}
